﻿CREATE TABLE [dbo].[aspnet_Roles] (
    [RoleId]      INT            IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,
    [RoleName]    NVARCHAR (256) NULL,
    [Description] NVARCHAR (256) NULL,
    [Sort]        INT            NULL,
    [FAdminFlg]   BIT            CONSTRAINT [DF_aspnet_Roles_FAdminFlg] DEFAULT ((0)) NULL,
    CONSTRAINT [PK_aspnet_Roles] PRIMARY KEY CLUSTERED ([RoleId] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'权限Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'aspnet_Roles', @level2type = N'COLUMN', @level2name = N'RoleId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'权限名称', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'aspnet_Roles', @level2type = N'COLUMN', @level2name = N'RoleName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'描述', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'aspnet_Roles', @level2type = N'COLUMN', @level2name = N'Description';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'排序', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'aspnet_Roles', @level2type = N'COLUMN', @level2name = N'Sort';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'分公司管理员是否有此权限', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'aspnet_Roles', @level2type = N'COLUMN', @level2name = N'FAdminFlg';

